<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>eccodes: TestBufrFile Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">eccodes
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>C&#160;Interface</span></a></li>
      <li><a href="classeccodes.html"><span>F90&#160;Interface</span></a></li>
      <li><a href="namespaces.html"><span>Python&#160;Interface</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>high_level_api</b></li><li class="navelem"><a class="el" href="classhigh__level__api_1_1_test_bufr_file.html">TestBufrFile</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">TestBufrFile Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Test BufrFile functionality.  
 <a href="classhigh__level__api_1_1_test_bufr_file.html#details">More...</a></p>

<p>Inherits TestCase.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4794a05e5b1eb5d444652bae54f04128"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#a4794a05e5b1eb5d444652bae54f04128">test_memory_management</a></td></tr>
<tr class="memdesc:a4794a05e5b1eb5d444652bae54f04128"><td class="mdescLeft">&#160;</td><td class="mdescRight">Messages in BufrFile can be opened and closed properly.  <a href="#a4794a05e5b1eb5d444652bae54f04128">More...</a><br/></td></tr>
<tr class="separator:a4794a05e5b1eb5d444652bae54f04128"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a400f7c3570e6aac8231fb9e7e55a16a2"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#a400f7c3570e6aac8231fb9e7e55a16a2">test_message_counting_works</a></td></tr>
<tr class="memdesc:a400f7c3570e6aac8231fb9e7e55a16a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The BufrFile is aware of its messages.  <a href="#a400f7c3570e6aac8231fb9e7e55a16a2">More...</a><br/></td></tr>
<tr class="separator:a400f7c3570e6aac8231fb9e7e55a16a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac296c5581454cae229c9e926509488f4"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#ac296c5581454cae229c9e926509488f4">test_iterator_protocol</a></td></tr>
<tr class="memdesc:ac296c5581454cae229c9e926509488f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The BufrFile allows pythonic iteration over all messages.  <a href="#ac296c5581454cae229c9e926509488f4">More...</a><br/></td></tr>
<tr class="separator:ac296c5581454cae229c9e926509488f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42d0160d68272b2d96cdffbc2db5f3f2"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#a42d0160d68272b2d96cdffbc2db5f3f2">test_read_past_last_message</a></td></tr>
<tr class="memdesc:a42d0160d68272b2d96cdffbc2db5f3f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trying to open message on exhausted BUFR file raises IOError.  <a href="#a42d0160d68272b2d96cdffbc2db5f3f2">More...</a><br/></td></tr>
<tr class="separator:a42d0160d68272b2d96cdffbc2db5f3f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf65917be1841c4717dee205457d576b"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#adf65917be1841c4717dee205457d576b">test_read_invalid_file</a></td></tr>
<tr class="memdesc:adf65917be1841c4717dee205457d576b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trying to open message on nonexistent file raises IOError.  <a href="#adf65917be1841c4717dee205457d576b">More...</a><br/></td></tr>
<tr class="separator:adf65917be1841c4717dee205457d576b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Test BufrFile functionality. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac296c5581454cae229c9e926509488f4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def test_iterator_protocol </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The BufrFile allows pythonic iteration over all messages. </p>

</div>
</div>
<a class="anchor" id="a4794a05e5b1eb5d444652bae54f04128"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def test_memory_management </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Messages in BufrFile can be opened and closed properly. </p>

<p>References <a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#a42d0160d68272b2d96cdffbc2db5f3f2">TestBufrFile.test_read_past_last_message()</a>.</p>

</div>
</div>
<a class="anchor" id="a400f7c3570e6aac8231fb9e7e55a16a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def test_message_counting_works </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The BufrFile is aware of its messages. </p>

<p>References <a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#adf65917be1841c4717dee205457d576b">TestBufrFile.test_read_invalid_file()</a>.</p>

</div>
</div>
<a class="anchor" id="adf65917be1841c4717dee205457d576b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def test_read_invalid_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Trying to open message on nonexistent file raises IOError. </p>

<p>Referenced by <a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#a400f7c3570e6aac8231fb9e7e55a16a2">TestBufrFile.test_message_counting_works()</a>.</p>

</div>
</div>
<a class="anchor" id="a42d0160d68272b2d96cdffbc2db5f3f2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def test_read_past_last_message </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Trying to open message on exhausted BUFR file raises IOError. </p>

<p>Referenced by <a class="el" href="classhigh__level__api_1_1_test_bufr_file.html#a4794a05e5b1eb5d444652bae54f04128">TestBufrFile.test_memory_management()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>high_level_api.py</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
